<?php

namespace app\privatearea\controller\web;

use app\common\cachemodel\privatearea\PrivateAreaShortLinkJump;
use think\Controller;

class Mall extends Controller
{
    public function index()
    {
        $sn = input('sn/s', '');
        $data = (new PrivateAreaShortLinkJump())->getInfoById($sn);
        if (empty($data))
        {
            return show(config('code.error'), '服务异常，网页失效');
        }
        $this->redirect($data['link']);
    }
}